
package com.be.beadmin.device.repository;

import com.be.beadmin.device.entity.EhsFile;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
* @author zty
* @date 2023-08-13
**/
public interface EhsFileRepository extends JpaRepository<EhsFile, String>, JpaSpecificationExecutor<EhsFile> {

    EhsFile findEhsFileByIdAndDelete(String id, Integer delete);

    EhsFile findEhsFileById(String id);

    int countEhsFilesByFileNameAndItemNameAndDelete(String fileName , String itemName , Integer delete);

    int countEhsFilesByFileNameAndVersionAndDelete(String fileName , String version , Integer delete);

}